#ifndef MAINVIEW_H
#define MAINVIEW_H

#include <QWidget>
#include <QDebug>
#include <QPaintEvent>
#include <QTimer>
#include <QProcess>

#include "keythread.h"
#include "loading.h"
#include "photo.h"
#include "cameraWidget.h"
#include "videowidget.h"
#include "videolist.h"
#include "tipwidget.h"

namespace Ui {
class MainView;
}

class MainView : public QWidget
{
    Q_OBJECT

public:
    explicit MainView(QWidget *parent = nullptr);
    ~MainView();

    void keyActive();
    void keyDisative();

    int index = 0;
    void updateIcon();
private slots:
    void KeyEvent(Key_t, int);

    void on_photoBtn_clicked();

    void on_cameraBtn_clicked();

    void on_videoBtn_clicked();

private:
    Ui::MainView *ui;
};

#endif // MAINVIEW_H
